<%@ page language="java" isELIgnored="false" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>Insert title here</title>
</head>
<body>
<h2>我是服务器：${pageContext.request.localPort}</h2>
<h2>当前sessionId：${pageContext.session.id}</h2>
<input type="button" class="btn btn-warning btn-sm doModify"  value="新增" onclick='location.href=("addPage")'>
<c:forEach items="${resumes}" var="resume">
    <table>
        <tr>
            <td>${resume.id}</td>
            <td>${resume.name}</td>
            <td>${resume.address}</td>
            <td>${resume.phone}</td>
            <td class="text-center">
                <input type="button" class="btn btn-warning btn-sm doModify" value="修改" onclick='location.href=("/resume/select?id=${resume.id}")'>
                <input type="button" class="btn btn-danger btn-sm doDisable" value="删除" onclick='location.href=("/resume/delete/${resume.id}")'>
            </td>
        </tr>
    </table>
</c:forEach>
</body>
</html>